package com.ztx.web.controller.manager;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ztx.model.QkInfo;
import com.ztx.pagemodel.easyui.DataGrid;
import com.ztx.pagemodel.easyui.PageHelper;
import com.ztx.service.manager.IQkQueryService;

@Controller
@RequestMapping("qkqueryController")
public class QkQueryController {

	@Resource
	private IQkQueryService qkQueryService;

	@RequestMapping(value = "list", method = RequestMethod.GET)
	public String list() {
		return "manager/qklist";
	}

	@RequestMapping(value = "datagrid", method = RequestMethod.POST)
	@ResponseBody
	public DataGrid<QkInfo> datagrid(PageHelper ph, QkInfo params) {
		return qkQueryService.getQkList(ph, params);
	}

}
